'''
Created on 07-Sep-2010

@author: dexen
'''


import logging
import sys
from StringIO import StringIO  

m = "dfafasdfasd"
m[-1] = "a"

print "HEllo World"

logging.basicConfig(level=logging.DEBUG)

logger = logging.getLogger("SLAVE1")
handler = logging.FileHandler("output.log")
fmt = logging.Formatter("[%(name)10s %(levelname)10s - %(asctime)20s] %(message)s", "%H:%M")
handler.setFormatter(fmt)
handler.setLevel(logging.DEBUG)
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)    

task_name = "ADFAD.BADFD.CVADARD"
logger.debug("executing %s in slave", task_name)

sys.exit()

logger1 = logging.getLogger("Ali")
logger1.setLevel(logging.DEBUG)
logger2 = logging.getLogger("Ali.veli")


logger2.setLevel(logging.DEBUG)

fmt = logging.Formatter("%(name)s: %(message)s, %(thread)d, %(process)d," +
                        "%(lineno)d, %(pathname)s")

hdlr = logging.FileHandler("Deneme.txt")
hdlr.setLevel(logging.DEBUG)
hdlr.setFormatter(fmt)

shdlr = logging.StreamHandler()

logger1.addHandler(hdlr)
logger1.addHandler(shdlr)

logger2.debug("xxx")







 
